<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    * {
      box-sizing: border-box;
    }
    a {
      text-decoration: none;
      color: #333;
    }
    body {
      background: #eee;
    }
    body, h4, p {
      margin: 0;
    }
    .heading {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 15px;
      width: 240px;
      background: #fff;
    }
    .title {
      font-size: 14px;
      color: #333;
      font-weight: normal;
      height: 45px;
      line-height: 45px;
    }
    .arrows {
      display: flex;
      width: 34px;
      justify-content: space-between;
    }
    .arrows i{
      width: 6px;
      height: 12px;
      background: #333;
      margin: 0 3px;
    }
    
    .list {
      width: 240px;
      background: #fff;
    }
    .list .item {
      display: flex;
      padding: 15px;
    }
    .item:hover {
      background: #f8f8f8;
    }
    .img {
      width: 52px;
      height: 72px;
      margin-right: 10px;
    }
    .item h4 {
      font-size: 14px;
      font-weight: normal;
    }
    .item p {
      font-size: 12px;
      margin-top: 6px;
    }
    .item .price-now {
      color: red;
    }
    .item .price-del {
      text-decoration: line-through;
    }
  </style>
</head>
<body>
  <div class="heading">
    <h4 class="title">掘金小册</h4>
    <div class="arrows">
      <i class="left"></i>
      <i class="right"></i>
    </div>
  </div>

  <div class="list">
    <a href="#" class="item">
      <!-- 不要让img作为flex的直接项目 -->
      <div class="img">
        <img width="100%" src="https://user-gold-cdn.xitu.io/2017/11/27/15ffbb05174a57f8?imageView2/1/w/104/h/144/q/95/format/webp/interlace/1" alt="">
      </div>
      <div class="body">
        <h4 class="item-title">Git原理详解及实用指南</h4>
        <p>
          <span class="price-now">新人价 ￥14.95</span>
          <span class="price-del">￥29.9</span>
        </p>
      </div>
    </a>
    <a href="#" class="item">
      <!-- 不要让img作为flex的直接项目 -->
      <div class="img">
        <img width="100%" src="https://user-gold-cdn.xitu.io/2017/11/27/15ffbb05174a57f8?imageView2/1/w/104/h/144/q/95/format/webp/interlace/1" alt="">
      </div>
      <div class="body">
        <h4 class="item-title">Git原理详解及实用指南</h4>
        <p>
          <span class="price-now">新人价 ￥14.95</span>
          <span class="price-del">￥29.9</span>
        </p>
      </div>
    </a>
    <a href="#" class="item">
      <!-- 不要让img作为flex的直接项目 -->
      <div class="img">
        <img width="100%" src="https://user-gold-cdn.xitu.io/2017/11/27/15ffbb05174a57f8?imageView2/1/w/104/h/144/q/95/format/webp/interlace/1" alt="">
      </div>
      <div class="body">
        <h4 class="item-title">Git原理详解及实用指南</h4>
        <p>
          <span class="price-now">新人价 ￥14.95</span>
          <span class="price-del">￥29.9</span>
        </p>
      </div>
    </a>
    <a href="#" class="item">
      <!-- 不要让img作为flex的直接项目 -->
      <div class="img">
        <img width="100%" src="https://user-gold-cdn.xitu.io/2017/11/27/15ffbb05174a57f8?imageView2/1/w/104/h/144/q/95/format/webp/interlace/1" alt="">
      </div>
      <div class="body">
        <h4 class="item-title">Git原理详解及实用指南</h4>
        <p>
          <span class="price-now">新人价 ￥14.95</span>
          <span class="price-del">￥29.9</span>
        </p>
      </div>
    </a>
  </div>

</body>
</html>